<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    * {
        margin: 0;
        padding: 0;
    }

    canvas {
        position: absolute;
        opacity: 0.5;
        transition: 0.2s linear;
        border-radius: 5px;
        background: transparent;
        left: 60%;
        height: 200px;
        width: 350px;
    }

    canvas:hover {
        opacity: 1;
        background: rgba(72, 232, 240, 0.8);
    }

    body {
        /* background:linear-gradient(to bottom, rgba(0, 204, 255, 0.3), rgba(40, 28, 28, 0.3)); */
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        height: 100vh;
        margin: 0%;
        padding: 0%;
    }

    main img {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -1;
        top: 0%;
    }

    main h1 {
        position: absolute;
        top: 200px;
        left: 100px;
        height: 100px;
        width: 400px;
        font-size: 50px;

    }
    </style>
</head>

<body>
    <main>
        <img src="./BG.jpg" alt="">
        <h1>您好，欢迎登陆！</h1>
        <canvas id="canvas"></canvas>

    </main>



</body>
<script src="./script.js"></script>

</html>